from django.conf import settings
from django.conf.urls.defaults import *

from htmock.views import *


urlpatterns = patterns('',
    url(r'^$', redirect_to_index),
    url(r'^inspect/$', InspectIndex(), name='inspect-index'),
    url(r'^inspect/(?P<label>[0-9A-Za-z_-]+)$', InspectResource(),
        name='inspect-resource'),
    url(r'^mock/(?P<label>[0-9A-Za-z_-]+)$', mock, name='mock'),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
         { 'document_root': settings.MEDIA_ROOT }),
    )

